home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 125 / MOBICLIC 125.ISO / pc / DATA / DSS125 / DSS125_04 / DSS125_04.swf / scripts / frame_1 / DoAction.as < prev   
Text File  |  2010-06-16  |  53KB  |  2,055 lines

  1. function initKeyPause()
  2. {
  3.    gPauseOn = 0;
  4.    gPauseSpaceOn = 0;
  5.    gPauseSpaceEnCours = 0;
  6. }
  7. function initGen()
  8. {
  9.    this._lockroot = true;
  10.    gClipGen = this;
  11.    Stage.showMenu = false;
  12.    gLangue = "FR";
  13.    gMusicOn = 1;
  14.    gSousTitre = 0;
  15.    gST = 0;
  16.    gVolume = 100;
  17.    gWidth = moduleInfo.returnNodeByPath("BackOffice").firstChild.attributes.width;
  18.    gHeight = moduleInfo.returnNodeByPath("BackOffice").firstChild.attributes.height;
  19.    if(gWidth == undefined)
  20.    {
  21.       gWidth = 800;
  22.    }
  23.    else
  24.    {
  25.       gWidth = Number(gWidth);
  26.    }
  27.    if(gHeight == undefined)
  28.    {
  29.       gHeight = 600;
  30.    }
  31.    else
  32.    {
  33.       gHeight = Number(gHeight);
  34.    }
  35.    initKeyPause();
  36. }
  37. function testeDebutCommentSpecial()
  38. {
  39.    switch(gCommentOn.id.split("_")[gCommentOn.id.split("_").length - 1])
  40.    {
  41.       case "bz":
  42.       case "BZ":
  43.          trace("-------  BZ on-----------");
  44.          DesactiveOEIL();
  45.          if(BT_OEIL.gEtat !== 3)
  46.          {
  47.             trace("E3");
  48.             BT_OEIL.gotoAndPlay("E3");
  49.          }
  50.          else
  51.          {
  52.             trace("PARLE");
  53.             BT_OEIL.OEIL_P.gotoAndPlay("parle");
  54.          }
  55.          break;
  56.       case "ze":
  57.       case "ZE":
  58.          trace("-------  ZE on-----------");
  59.          DesactiveOEIL();
  60.          if(BT_OEIL.gEtat !== 3)
  61.          {
  62.             BT_OEIL.gotoAndPlay("E3");
  63.          }
  64.          else
  65.          {
  66.             BT_OEIL.OEIL_P.gotoAndPlay("parle");
  67.          }
  68.          afficherRolls();
  69.    }
  70. }
  71. function testeFinCommentSpecial()
  72. {
  73.    switch(gCommentOn.id.split("_")[gCommentOn.id.split("_").length - 1])
  74.    {
  75.       case "bz":
  76.       case "BZ":
  77.          trace("-------  BZ off-----------");
  78.          ActiveOEIL();
  79.          BT_OEIL.OEIL_P.gotoAndPlay("rentre");
  80.          BT_OEIL.gClicOn = undefined;
  81.          break;
  82.       case "ze":
  83.       case "ZE":
  84.          trace("-------  ZE off-----------");
  85.          ActiveOEIL();
  86.          BT_OEIL.OEIL_P.gotoAndPlay("rentre");
  87.          BT_OEIL.gClicOn = undefined;
  88.          masquerRolls();
  89.    }
  90. }
  91. function stopComment()
  92. {
  93.    if(gCommentOn !== undefined)
  94.    {
  95.       testeFinCommentSpecial();
  96.       delete gCommentOn.onSoundComplete;
  97.       gCommentOn.stop();
  98.       gCommentOn = undefined;
  99.       if(gPauseOn == undefined || gPauseOn == 0)
  100.       {
  101.          removeMovieClip("mcClicZap");
  102.       }
  103.       gBlockST = undefined;
  104.       gereTextes.masqueST();
  105.       if(gClipTarget !== undefined)
  106.       {
  107.          gClipTarget.gotoAndStop(gClipTargetLabel);
  108.          gClipTarget = undefined;
  109.          gClipTargetLabel = undefined;
  110.       }
  111.    }
  112. }
  113. function pauseComment()
  114. {
  115.    trace("pauseComment " + gCommentOn);
  116.    if(gCommentOn !== undefined)
  117.    {
  118.       gCommentOn.stop();
  119.       mcClicZap._visible = false;
  120.    }
  121. }
  122. function continueComment()
  123. {
  124.    trace("continueComment " + gCommentOn);
  125.    if(gCommentOn !== undefined)
  126.    {
  127.       gCommentOn.start(gCommentOn.position / 1000);
  128.       mcClicZap._visible = true;
  129.    }
  130. }
  131. function joueSon(p)
  132. {
  133.    var _loc4_ = p.nomSon;
  134.    gSoundString = _loc4_;
  135.    if(p.mc !== undefined)
  136.    {
  137.       gClipRef = p.mc;
  138.    }
  139.    else
  140.    {
  141.       gClipRef = _root;
  142.    }
  143.    if(p.zapBlock !== undefined)
  144.    {
  145.       gClicZap = p.zapBlock;
  146.    }
  147.    else
  148.    {
  149.       gClicZap = "ZAP_BLOCK";
  150.    }
  151.    if(p.actionFin !== undefined)
  152.    {
  153.       gActionFinSon = p.actionFin;
  154.    }
  155.    else
  156.    {
  157.       gActionFinSon = "PLAY";
  158.    }
  159.    stopComment();
  160.    if(p.mcCible !== undefined)
  161.    {
  162.       if(typeof p.mcCible == "movieclip")
  163.       {
  164.          gClipTarget = p.mcCible;
  165.       }
  166.       else
  167.       {
  168.          gClipTarget = gClipRef[p.mcCible];
  169.       }
  170.       if(p.mcLabelOut !== undefined)
  171.       {
  172.          gClipTargetLabel = p.mcLabelOut;
  173.       }
  174.       else
  175.       {
  176.          gClipTargetLabel = gClipTarget._currentframe;
  177.       }
  178.       if(p.mcLabelIn !== undefined)
  179.       {
  180.          gClipTarget.gotoAndPlay(p.mcLabelIn);
  181.       }
  182.       else
  183.       {
  184.          gClipTarget.gotoAndPlay("parle");
  185.       }
  186.    }
  187.    gCommentName = "S_" + gLangue + "_" + gModuleName + "_";
  188.    trace("joueSon " + gCommentName + _loc4_);
  189.    mySound = soundObjects[gCommentName + _loc4_];
  190.    if(mySound !== undefined)
  191.    {
  192.       gCommentOn = mySound;
  193.       gCommentOn.p = p;
  194.       gCommentOn.id = gCommentName + _loc4_;
  195.       testeDebutCommentSpecial();
  196.       if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  197.       {
  198.          soundObjects[gMusic].setVolume(gVolume * 40 / 100);
  199.       }
  200.       mySound.setVolume(gVolume);
  201.       if(gCommentOnPausePos !== undefined)
  202.       {
  203.          mySound.start(gCommentOnPausePos / 1000);
  204.          gCommentOnPause = undefined;
  205.          gCommentOnPausePos = undefined;
  206.       }
  207.       else
  208.       {
  209.          mySound.start();
  210.       }
  211.    }
  212.    else
  213.    {
  214.       trace("______" + getSoundByID(gCommentName + _loc4_) + gCommentName);
  215.       var _loc5_ = getSoundByID(gCommentName + _loc4_);
  216.       if(_loc5_ !== undefined)
  217.       {
  218.          mySound = new Sound();
  219.          mySound.onLoad = function(success)
  220.          {
  221.             if(success)
  222.             {
  223.                if(gCommentOnPausePos !== undefined)
  224.                {
  225.                   mySound.start(gCommentOnPausePos / 1000);
  226.                   gCommentOnPause = undefined;
  227.                   gCommentOnPausePos = undefined;
  228.                }
  229.                else
  230.                {
  231.                   mySound.start();
  232.                }
  233.             }
  234.          };
  235.          mySound.loadSound(this.gModulePath + _loc5_.attributes.src,true);
  236.          gCommentOn = mySound;
  237.          gCommentOn.p = p;
  238.          gCommentOn.id = gCommentName + _loc4_;
  239.          testeDebutCommentSpecial();
  240.          if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  241.          {
  242.             soundObjects[gMusic].setVolume(gVolume * 40 / 100);
  243.          }
  244.       }
  245.    }
  246.    if(mySound == undefined)
  247.    {
  248.       return undefined;
  249.    }
  250.    mySound.onSoundComplete = commentFini;
  251.    if(gClicZap !== "NOZAP_NOBLOCK")
  252.    {
  253.       mcClicZap = creerRectangle({nom:"mcClicZap",pere:_root,level:15000,width:gWidth,height:gHeight,x:0,y:0,alpha:0});
  254.       switch(gClicZap.split("_")[0])
  255.       {
  256.          case "ZAP":
  257.             mcClicZap.useHandCursor = false;
  258.             mcClicZap.onPress = function()
  259.             {
  260.                trace("clic zap son");
  261.                stopSon();
  262.             };
  263.             break;
  264.          case "NOZAP":
  265.             mcClicZap.useHandCursor = false;
  266.             mcClicZap.onPress = function()
  267.             {
  268.                trace("no clic allowed");
  269.             };
  270.       }
  271.       mcClicZap._visible = true;
  272.    }
  273.    if(gST == 1 && gBlockST == undefined)
  274.    {
  275.       gereTextes.afficheST(gCommentName + _loc4_);
  276.    }
  277. }
  278. function creerClicZap(p)
  279. {
  280.    if(_global.mcClicZap2 != undefined)
  281.    {
  282.       removeMovieClip(_root.mcClicZap2);
  283.    }
  284.    var _loc0_ = null;
  285.    var _loc4_ = _global.mcClicZap2 = creerRectangle({nom:"mcClicZap2",pere:_root,level:15001,width:gWidth,height:gHeight,x:0,y:0,alpha:0});
  286.    _loc4_.p = p;
  287.    _loc4_.useHandCursor = false;
  288.    _loc4_.onPress = function()
  289.    {
  290.       this.p.retour.call(this.p.ecouteur);
  291.       removeMovieClip(this);
  292.       _global.mcClicZap2 = undefined;
  293.    };
  294.    _loc4_._visible = true;
  295. }
  296. function creerRectangle(p)
  297. {
  298.    var _loc15_ = p.x != undefined ? p.x : 0;
  299.    var _loc13_ = p.y != undefined ? p.y : 0;
  300.    if(p.w != undefined)
  301.    {
  302.       var _loc16_ = p.w;
  303.    }
  304.    else if(p.width != undefined)
  305.    {
  306.       _loc16_ = p.width;
  307.    }
  308.    if(p.h != undefined)
  309.    {
  310.       var _loc14_ = p.h;
  311.    }
  312.    else if(p.height != undefined)
  313.    {
  314.       _loc14_ = p.height;
  315.    }
  316.    var _loc11_ = p.pere != undefined ? p.pere : _root;
  317.    var _loc9_ = p.level != undefined ? p.level : 10;
  318.    var _loc12_ = p.couleur != undefined ? p.couleur : 0;
  319.    var _loc10_ = p.nom != undefined ? p.nom : "ClipSansNom";
  320.    var _loc4_ = p.courbure != undefined ? p.courbure : 0;
  321.    var _loc17_ = p.alpha != undefined ? p.alpha : 100;
  322.    var _loc6_ = 0;
  323.    var _loc7_ = 0;
  324.    var _loc8_ = _loc16_;
  325.    var _loc5_ = _loc14_;
  326.    var _loc3_ = _loc11_.createEmptyMovieClip(_loc10_,_loc9_);
  327.    _loc3_.beginFill(_loc12_,_loc17_);
  328.    _loc3_.moveTo(_loc6_,_loc5_ - _loc4_);
  329.    _loc3_.lineTo(_loc6_,_loc7_ + _loc4_);
  330.    _loc3_.curveTo(_loc6_,_loc7_,_loc6_ + _loc4_,_loc7_);
  331.    _loc3_.lineTo(_loc8_ - _loc4_,_loc7_);
  332.    _loc3_.curveTo(_loc8_,_loc7_,_loc8_,_loc7_ + _loc4_);
  333.    _loc3_.lineTo(_loc8_,_loc5_ - _loc4_);
  334.    _loc3_.curveTo(_loc8_,_loc5_,_loc8_ - _loc4_,_loc5_);
  335.    _loc3_.lineTo(_loc6_ + _loc4_,_loc5_);
  336.    _loc3_.curveTo(_loc6_,_loc5_,_loc6_,_loc5_ - _loc4_);
  337.    _loc3_.endFill();
  338.    _loc3_._x = _loc15_;
  339.    _loc3_._y = _loc13_;
  340.    return _loc3_;
  341. }
  342. function stopSon()
  343. {
  344.    gCommentOn.stop();
  345.    commentFini();
  346. }
  347. function commentFini()
  348. {
  349.    testeFinCommentSpecial();
  350.    if(gClicZap !== "NOZAP_NOBLOCK")
  351.    {
  352.       removeMovieClip("mcClicZap");
  353.    }
  354.    gCommentOn = undefined;
  355.    gBlockST = undefined;
  356.    gereTextes.masqueST();
  357.    if(gMusicOn == 1 && gMusic !== undefined && gBlockMusic == undefined)
  358.    {
  359.       soundObjects[gMusic].setVolume(gVolume);
  360.    }
  361.    if(gClipTarget !== undefined)
  362.    {
  363.       gClipTarget.gotoAndStop(gClipTargetLabel);
  364.       gClipTarget = undefined;
  365.       gClipTargetLabel = undefined;
  366.    }
  367.    switch(gActionFinSon)
  368.    {
  369.       case "RIEN":
  370.          break;
  371.       case "PLAY":
  372.          if(_root.gNextLabel == undefined)
  373.          {
  374.             if(gLineaireOn != undefined)
  375.             {
  376.                if((_loc0_ = gLineaireOn) !== "_")
  377.                {
  378.                   lSonSuivant = gLineaireOn + gimme2digits(Number(gSoundString.split("_")[gSoundString.split("_").length - 1]) + 1);
  379.                   lLabel = lSonSuivant;
  380.                }
  381.                else
  382.                {
  383.                   lSonSuivant = gimme2digits(Number(gSoundString.split("_")[gSoundString.split("_").length - 1]) + 1);
  384.                   lLabel = gLineaireOn + lSonSuivant;
  385.                }
  386.                joueSon({mc:gClipRef,nomSon:lSonSuivant,zapBlock:gClicZap,actionFin:gActionFinSon});
  387.                gClipRef.gotoAndStop(lLabel);
  388.             }
  389.             else
  390.             {
  391.                gClipRef.play();
  392.             }
  393.          }
  394.          else
  395.          {
  396.             gClipRef.gotoAndPlay(_root.gNextLabel);
  397.             _root.gNextLabel = undefined;
  398.             gLineaireOn = undefined;
  399.          }
  400.          break;
  401.       default:
  402.          _root[gActionFinSon]();
  403.    }
  404. }
  405. function joueBruitage(p)
  406. {
  407.    var _loc2_ = soundObjects[gBruitageName + p.nomSon];
  408.    if(gListeBruitage == undefined)
  409.    {
  410.       gListeBruitage = [];
  411.       gListeA_fin_Bruitage = [];
  412.       gListeLoop_Bruitage = [];
  413.    }
  414.    _loc2_.setVolume(gVolume);
  415.    _loc2_.id = p.nomSon;
  416.    gListeBruitage.push(_loc2_.id);
  417.    if(p.actionFin !== undefined)
  418.    {
  419.       gActionFinBruitage = p.actionFin;
  420.       gListeA_fin_Bruitage.push(gActionFinBruitage);
  421.    }
  422.    else
  423.    {
  424.       gActionFinBruitage = undefined;
  425.       gListeA_fin_Bruitage.push("");
  426.    }
  427.    _loc2_.p = p;
  428.    _loc2_.onSoundComplete = mx.utils.Delegate.create(_loc2_,finBruitage);
  429.    if(p.loopSon == undefined)
  430.    {
  431.       _loc2_.start(p.offset);
  432.       gListeLoop_Bruitage.push("");
  433.    }
  434.    else
  435.    {
  436.       _loc2_.start(p.offset,p.loopSon);
  437.       gListeLoop_Bruitage.push(p.loopSon);
  438.    }
  439. }
  440. function stopBruitage(p)
  441. {
  442.    var _loc1_ = soundObjects[gBruitageName + p.nomSon];
  443.    finBruitage(p.nomSon);
  444.    _loc1_.stop();
  445. }
  446. function finBruitage(lSon)
  447. {
  448.    if(lSon == undefined)
  449.    {
  450.       lSon = this.id;
  451.    }
  452.    if(gListeBruitage !== undefined)
  453.    {
  454.       if(getPos(gListeBruitage,lSon) !== -1)
  455.       {
  456.          if(gListeA_fin_Bruitage[getPos(gListeBruitage,lSon)] !== "")
  457.          {
  458.             if(typeof gListeA_fin_Bruitage[getPos(gListeBruitage,lSon)] == "string")
  459.             {
  460.                gClipGen[gListeA_fin_Bruitage[getPos(gListeBruitage,lSon)]]();
  461.             }
  462.             else
  463.             {
  464.                gListeA_fin_Bruitage[getPos(gListeBruitage,lSon)].call(this.p.MC);
  465.             }
  466.          }
  467.          gListeA_fin_Bruitage.splice(getPos(gListeBruitage,lSon),1);
  468.          gListeLoop_Bruitage.splice(getPos(gListeBruitage,lSon),1);
  469.          gListeBruitage.splice(getPos(gListeBruitage,lSon),1);
  470.          if(gListeBruitage.length == 0)
  471.          {
  472.             gListeBruitage = undefined;
  473.             gListeA_fin_Bruitage = undefined;
  474.             gListeLoop_Bruitage = undefined;
  475.          }
  476.       }
  477.    }
  478. }
  479. function getPos(myList, myValue)
  480. {
  481.    lPresent = -1;
  482.    maPosition = 0;
  483.    while(maPosition <= myList.length)
  484.    {
  485.       if(myList[maPosition] == myValue)
  486.       {
  487.          lPresent = maPosition;
  488.          break;
  489.       }
  490.       maPosition++;
  491.    }
  492.    return lPresent;
  493. }
  494. function trouvePosMax(myList)
  495. {
  496.    lMax = myList[0];
  497.    lPosMax = 0;
  498.    i = 1;
  499.    while(i <= myList.length)
  500.    {
  501.       if(myList[i] > lMax)
  502.       {
  503.          lMax = myList[i];
  504.          lPosMax = i;
  505.       }
  506.       i++;
  507.    }
  508.    return lPosMax;
  509. }
  510. function duplicate(myList)
  511. {
  512.    newList = [];
  513.    i = 0;
  514.    while(i <= myList.length - 1)
  515.    {
  516.       newList.push(myList[i]);
  517.       i++;
  518.    }
  519.    return newList;
  520. }
  521. function randomiseList(myList)
  522. {
  523.    var _loc3_ = duplicate(myList);
  524.    var _loc4_ = [];
  525.    var _loc5_ = _loc3_.length;
  526.    var _loc2_ = 0;
  527.    while(_loc2_ < _loc5_)
  528.    {
  529.       var _loc1_ = randomValue(0,_loc3_.length - 1);
  530.       _loc4_.push(_loc3_[_loc1_]);
  531.       _loc3_.splice(_loc1_,1);
  532.       _loc2_ = _loc2_ + 1;
  533.    }
  534.    return _loc4_;
  535. }
  536. function returnNodeByPathRandomise(nodeSent)
  537. {
  538.    var _loc4_ = new XML();
  539.    var _loc5_ = nodeSent.childNodes.length;
  540.    var _loc1_ = 0;
  541.    while(_loc1_ < _loc5_)
  542.    {
  543.       var _loc2_ = randomValue(0,nodeSent.childNodes.length - 1);
  544.       _loc4_.appendChild(nodeSent.childNodes[_loc2_]);
  545.       _loc1_ = _loc1_ + 1;
  546.    }
  547.    return _loc4_;
  548. }
  549. function zapIntro(myLabel)
  550. {
  551.    mcClicZapIntro = this.createEmptyMovieClip("mcClicZapIntro",16031);
  552.    mcClicZapIntro.attachMovie("ClipInvisible","ClipInvisible",2);
  553.    mcClicZapIntro._width = gClipGen._width;
  554.    mcClicZapIntro._height = gClipGen._height;
  555.    mcClicZapIntro._x = 0;
  556.    mcClicZapIntro._y = 0;
  557.    mcClicZapIntro.useHandCursor = false;
  558.    mcClicZapIntro.onPress = function()
  559.    {
  560.       trace("clic zappIntro " + this);
  561.       stopComment();
  562.       gotoAndPlay(myLabel);
  563.       removeZapIntro();
  564.    };
  565. }
  566. function removeZapIntro()
  567. {
  568.    trace("mcClicZapIntrO " + mcClicZapIntro._name + " " + this);
  569.    if(mcClicZapIntro._x != undefined)
  570.    {
  571.       trace("suppression");
  572.       removeMovieClip(mcClicZapIntro);
  573.    }
  574. }
  575. function onMcOut(myMc)
  576. {
  577.    gereCursor(1);
  578.    if(myMc.pLabelOut == undefined)
  579.    {
  580.       myMc.gotoAndPlay("E1");
  581.    }
  582.    else
  583.    {
  584.       myMc.gotoAndPlay(myMc.pLabelOut);
  585.    }
  586.    if(myMc.pSon.split("")[0] == "B")
  587.    {
  588.       stopBruitage({nomSon:myMc.pSon});
  589.    }
  590.    else
  591.    {
  592.       stopComment();
  593.    }
  594.    if(myMc.pIB !== undefined)
  595.    {
  596.       gereTextes.masqueIB();
  597.    }
  598. }
  599. function onMcOver(p)
  600. {
  601.    var myMc = p.mc;
  602.    myMc.pIB = p.codeIB;
  603.    if(p.nomSon == undefined)
  604.    {
  605.       if(p.nomSonC == undefined)
  606.       {
  607.          myMc.pSon = "B_" + myMc._name.split("_")[1];
  608.       }
  609.       else
  610.       {
  611.          myMc.pSon = p.nomSonC;
  612.       }
  613.    }
  614.    else
  615.    {
  616.       myMc.pSon = p.nomSon;
  617.    }
  618.    if(p.actionFin == undefined)
  619.    {
  620.       myMc.actionFin = "RIEN";
  621.    }
  622.    else
  623.    {
  624.       myMc.actionFin = p.actionFin;
  625.    }
  626.    myMc.pLabelOut = p.mcLabelOut;
  627.    myMc.onRollOver = function()
  628.    {
  629.       gereCursor(2);
  630.       if(p.mcLabelIn == undefined)
  631.       {
  632.          this.gotoAndPlay("E2");
  633.       }
  634.       else
  635.       {
  636.          this.gotoAndPlay(p.mcLabelIn);
  637.       }
  638.       if(this.pSon.split("")[0] == "B")
  639.       {
  640.          joueBruitage({nomSon:this.pSon});
  641.       }
  642.       else
  643.       {
  644.          joueSon({nomSon:this.pSon,zapBlock:"NOZAP_NOBLOCK",actionFin:this.actionFin});
  645.       }
  646.       if(this.pIB !== undefined)
  647.       {
  648.          gereTextes.afficheIB({mc:this,codeIB:this.pIB});
  649.       }
  650.    };
  651.    myMc.onRollOut = myMc.onDragOut = function()
  652.    {
  653.       onMcOut(myMc);
  654.    };
  655. }
  656. function desactiveClip(pClip)
  657. {
  658.    trace(pClip);
  659.    delete pClip.onRollOver;
  660.    delete pClip.onRollOut;
  661.    delete pClip.onDragOut;
  662.    delete pClip.onPress;
  663.    delete pClip.onRelease;
  664.    delete pClip.onReleaseOutside;
  665. }
  666. function afficheClipPos(myMc, myX, myY)
  667. {
  668.    myMc._x = myX;
  669.    myMc._y = myY;
  670.    myMc._visible = true;
  671. }
  672. function gimme2digits(X)
  673. {
  674.    if(Number(X) < 10)
  675.    {
  676.       lX = "0" + Number(X);
  677.    }
  678.    else
  679.    {
  680.       lX = String(X);
  681.    }
  682.    return lX;
  683. }
  684. function randomValue(min, max)
  685. {
  686.    var _loc1_ = Math.floor(Math.random() * (max - min + 1)) + min;
  687.    return _loc1_;
  688. }
  689. function chercheDepthPlus(myMc, myDepth)
  690. {
  691.    var _loc1_ = myDepth;
  692.    while(_loc1_ < 17000)
  693.    {
  694.       if(myMc.getInstanceAtDepth(_loc1_) == undefined)
  695.       {
  696.          break;
  697.       }
  698.       _loc1_ = _loc1_ + 1;
  699.    }
  700.    return _loc1_;
  701. }
  702. function chercheDepthMoins(myMc, myDepth)
  703. {
  704.    var _loc1_ = myDepth;
  705.    while(_loc1_ > -16383)
  706.    {
  707.       if(myMc.getInstanceAtDepth(_loc1_) == undefined)
  708.       {
  709.          break;
  710.       }
  711.       _loc1_ = _loc1_ - 1;
  712.    }
  713.    return _loc1_;
  714. }
  715. function changeST(myST)
  716. {
  717.    trace("changeST   : " + myST);
  718.    if(myST == "1")
  719.    {
  720.       gST = 1;
  721.       if(gCommentOn !== undefined)
  722.       {
  723.          gereTextes.afficheST(gCommentOn.id);
  724.       }
  725.    }
  726.    else
  727.    {
  728.       sousTitre = 0;
  729.       gST = 0;
  730.       gereTextes.masqueST(this);
  731.    }
  732. }
  733. function changeMusicOn(myChangeMusicOn)
  734. {
  735.    trace("changeMusicOn   : " + myChangeMusicOn);
  736.    switch(String(myChangeMusicOn))
  737.    {
  738.       case "1":
  739.          gMusicOn = 1;
  740.          if(gMusic == undefined)
  741.          {
  742.             gMusic = gBruitageName + "MU";
  743.          }
  744.          trace("changeMusicOn2   : " + gMusic + " - " + gVolume);
  745.          if(gBlockMusic == undefined)
  746.          {
  747.             if(gCommentOn !== undefined)
  748.             {
  749.                soundObjects[gMusic].setVolume(gVolume * 0.4);
  750.             }
  751.             else
  752.             {
  753.                soundObjects[gMusic].setVolume(gVolume);
  754.             }
  755.          }
  756.          else
  757.          {
  758.             soundObjects[gMusic].setVolume(0);
  759.          }
  760.          soundObjects[gMusic].start(0,1000);
  761.          break;
  762.       case "0":
  763.          soundObjects[gMusic].stop();
  764.          gMusicOn = 0;
  765.          break;
  766.       default:
  767.          if(gMusic !== undefined)
  768.          {
  769.             soundObjects[gMusic].stop();
  770.          }
  771.          gMusic = gBruitageName + myChangeMusicOn;
  772.          if(gMusicOn == 1)
  773.          {
  774.             if(gBlockMusic == undefined)
  775.             {
  776.                if(gCommentOn !== undefined)
  777.                {
  778.                   soundObjects[gMusic].setVolume(gVolume * 0.4);
  779.                }
  780.                else
  781.                {
  782.                   soundObjects[gMusic].setVolume(gVolume);
  783.                }
  784.             }
  785.             else
  786.             {
  787.                soundObjects[gMusic].setVolume(0);
  788.             }
  789.             soundObjects[gMusic].start(0,1000);
  790.          }
  791.    }
  792. }
  793. function changeVolume(myChangeVolume)
  794. {
  795.    trace("changeVolume   : " + myChangeVolume);
  796.    gVolume = Number(myChangeVolume);
  797.    if(gCommentOn !== undefined)
  798.    {
  799.       gCommentOn.setVolume(gVolume);
  800.       if(gMusicOn == 1)
  801.       {
  802.          soundObjects[gMusic].setVolume(gVolume * 0.4);
  803.       }
  804.    }
  805.    else if(gMusicOn == 1)
  806.    {
  807.       soundObjects[gMusic].setVolume(gVolume);
  808.    }
  809. }
  810. function DesactiveBZ()
  811. {
  812.    BT_BZ.useHandCursor = false;
  813.    BT_BZ.gBZactif = 0;
  814. }
  815. function ActiveBZ()
  816. {
  817.    BT_BZ.useHandCursor = true;
  818.    BT_BZ.gBZactif = 1;
  819. }
  820. function getRessourceByID(attributeValue, typeRessource)
  821. {
  822.    var _loc2_ = this.moduleInfo.filterNode(this.moduleInfo.returnNodeByPath("Resources.ResourcesZip"),"type",typeRessource);
  823.    mySound = undefined;
  824.    mySound = this.recusiveGetSoundByAttribute(_loc2_,"id",attributeValue);
  825.    if(mySound == undefined)
  826.    {
  827.       trace(attributeValue + " n\'existe pas dans XML");
  828.    }
  829.    return mySound;
  830. }
  831. function getSoundByID(attributeValue)
  832. {
  833.    var _loc2_ = this.moduleInfo.filterNode(this.moduleInfo.returnNodeByPath("Resources.ResourcesZip"),"type","mp3");
  834.    mySound = undefined;
  835.    mySound = this.recusiveGetSoundByAttribute(_loc2_,"id",attributeValue);
  836.    if(mySound == undefined)
  837.    {
  838.       trace(attributeValue + " n\'existe pas dans XML");
  839.    }
  840.    return mySound;
  841. }
  842. function recusiveGetSoundByAttribute(node, attribute, attributeValue)
  843. {
  844.    var _loc2_ = 0;
  845.    while(_loc2_ < node.childNodes.length)
  846.    {
  847.       if(node.childNodes[_loc2_].attributes[attribute] == attributeValue)
  848.       {
  849.          mySound = node.childNodes[_loc2_];
  850.          break;
  851.       }
  852.       if(node.childNodes[_loc2_].hasChildNodes())
  853.       {
  854.          this.recusiveGetSoundByAttribute(node.childNodes[_loc2_],attribute,attributeValue);
  855.       }
  856.       _loc2_ = _loc2_ + 1;
  857.    }
  858.    return mySound;
  859. }
  860. function gereCursor(myCursor)
  861. {
  862.    switch(myCursor)
  863.    {
  864.       case 1:
  865.       case "fleche":
  866.          myCursor = "fleche";
  867.          break;
  868.       case 2:
  869.       case "doigt":
  870.          myCursor = "doigt";
  871.          break;
  872.       case 3:
  873.       case "mainO":
  874.          myCursor = "mainO";
  875.          break;
  876.       case 4:
  877.       case "mainF":
  878.          myCursor = "mainF";
  879.          break;
  880.       case 0:
  881.       case "O":
  882.          myCursor = "O";
  883.    }
  884.    _global.CURSEUR.Action(myCursor);
  885. }
  886. function ConvertCoord(mc_src, mc_dest)
  887. {
  888.    var _loc1_ = {x:0,y:0};
  889.    mc_src.localToGlobal(_loc1_);
  890.    mc_dest.globalToLocal(_loc1_);
  891.    return _loc1_;
  892. }
  893. function xtrace(p)
  894. {
  895.    var _loc3_ = typeof p != "string" ? "" + p.mess : "" + p;
  896.    var _loc5_ = p.group != undefined ? p.group : "tous";
  897.    if(xtraceGroups[_loc5_] == 1)
  898.    {
  899.       trace(_loc3_);
  900.       if(_global.xtrace_mode != "on")
  901.       {
  902.          return undefined;
  903.       }
  904.       var _loc4_ = new LocalConnection();
  905.       _loc4_.allowDomain = function(sendingDomain)
  906.       {
  907.          return true;
  908.       };
  909.       _loc4_.send("lc_name","AfficherTexte",_loc3_);
  910.    }
  911. }
  912. function xtrace_raz()
  913. {
  914.    if(_global.xtrace_mode != "on")
  915.    {
  916.       return undefined;
  917.    }
  918.    var _loc2_ = new LocalConnection();
  919.    _loc2_.send("lc_name","RazTexte",mess);
  920. }
  921. function xlisteObj(p)
  922. {
  923.    if(xlisteObj_mode != "on")
  924.    {
  925.       return undefined;
  926.    }
  927.    var _loc1_ = p.obj != undefined ? p.obj : p;
  928.    p.mess = p.mess != undefined ? p.mess : "";
  929.    xtrace({mess:"\r____________________" + p.mess + " " + _loc1_._name + "______________________",group:p.group});
  930.    for(props in _loc1_)
  931.    {
  932.       xtrace({mess:props + " = " + _loc1_[props],group:p.group});
  933.    }
  934.    xtrace({mess:"_________________________________________________\r",group:p.group});
  935. }
  936. function IncString(str, seuil)
  937. {
  938.    var _loc2_ = str.split("_");
  939.    var _loc1_ = _loc2_.length - 1;
  940.    var _loc3_ = Number(_loc2_[_loc1_]) + 1;
  941.    while(_loc3_ > seuil)
  942.    {
  943.       _loc2_[_loc1_] = gimme2digits(0);
  944.       _loc1_ = _loc1_ - 1;
  945.       _loc3_ = Number(_loc2_[_loc1_]) + 1;
  946.    }
  947.    _loc2_[_loc1_] = gimme2digits(_loc3_);
  948.    return _loc2_.join("_");
  949. }
  950. function DecString(str)
  951. {
  952.    var _loc1_ = str.split("_");
  953.    trace(_loc1_);
  954.    var _loc2_ = _loc1_.length - 1;
  955.    trace(Number(_loc1_[_loc2_]));
  956.    _loc1_[_loc2_] = gimme2digits(Number(_loc1_[_loc2_]) - 1);
  957.    return _loc1_.join("_");
  958. }
  959. function xGetConfig()
  960. {
  961.    _root.xConfig = new Object();
  962.    _root.xConfig.Set = function(p)
  963.    {
  964.       if(_root.xConfig[p.nom] == undefined)
  965.       {
  966.          if(p.defaut != "OBLIGATOIRE")
  967.          {
  968.             _root.xConfig[p.nom] = p.defaut;
  969.             if(p.type == "number")
  970.             {
  971.                _root.xConfig[p.nom] = Number(_root.xConfig[p.nom]);
  972.             }
  973.          }
  974.       }
  975.    };
  976.    _root.xConfig._name = "xConfig";
  977.    var _loc2_ = _root.moduleInfo.returnNodeByPath("Module.Config.Params").childNodes;
  978.    for(props in _loc2_)
  979.    {
  980.       _root.xConfig[_loc2_[props].attributes.nom] = _loc2_[props].attributes.valeur;
  981.    }
  982. }
  983. function GetFilePath(fichier)
  984. {
  985.    var _loc2_ = AntiSlashToSlash(fichier);
  986.    var _loc1_ = _loc2_.split("/");
  987.    _loc1_.pop();
  988.    return _loc1_.join("/");
  989. }
  990. function AntiSlashToSlash(chaine)
  991. {
  992.    return str_replace(chaine,"\\","/");
  993. }
  994. function str_replace(str, search, replace)
  995. {
  996.    return str.split(search).join(replace);
  997. }
  998. function JoindreObjets(objects)
  999. {
  1000.    var _loc2_ = new Object();
  1001.    var _loc1_ = 0;
  1002.    while(_loc1_ < objects.length)
  1003.    {
  1004.       p1 = objects[_loc1_];
  1005.       for(props in p1)
  1006.       {
  1007.          _loc2_[props] = p1[props];
  1008.       }
  1009.       _loc1_ = _loc1_ + 1;
  1010.    }
  1011.    return _loc2_;
  1012. }
  1013. function GetOriginalSize(mc)
  1014. {
  1015.    var _loc2_ = mc._rotation;
  1016.    mc._rotation = 0;
  1017.    var _loc3_ = {w:mc._width * mc._xscale / 100,h:mc._height * mc._yscale / 100};
  1018.    mc._rotation = _loc2_;
  1019.    return _loc3_;
  1020. }
  1021. function GetOriginalWidth(mc)
  1022. {
  1023.    var _loc2_ = mc._rotation;
  1024.    mc._rotation = 0;
  1025.    var _loc3_ = mc._width * mc._xscale / 100;
  1026.    var _loc4_ = mc._height * mc._yscale / 100;
  1027.    mc._rotation = _loc2_;
  1028.    return _loc3_;
  1029. }
  1030. function GetOriginalHeight(mc)
  1031. {
  1032.    var _loc2_ = mc._rotation;
  1033.    mc._rotation = 0;
  1034.    var _loc4_ = mc._width * mc._xscale / 100;
  1035.    var _loc3_ = mc._height * mc._yscale / 100;
  1036.    mc._rotation = _loc2_;
  1037.    return _loc3_;
  1038. }
  1039. function CreerCache(p)
  1040. {
  1041.    var _loc4_ = p.level != undefined ? p.level : _global.Levels.cache;
  1042.    var _loc2_ = p.mc.createEmptyMovieClip("CACHE",_loc4_);
  1043.    _loc2_.beginFill(65280,50);
  1044.    _loc2_.moveTo(0,0);
  1045.    _loc2_.lineTo(p.width,0);
  1046.    _loc2_.lineTo(p.width,p.height);
  1047.    _loc2_.lineTo(0,p.height);
  1048.    _loc2_.lineTo(0,0);
  1049.    _loc2_.endFill();
  1050.    p.mc.setMask(_loc2_);
  1051. }
  1052. function ConvertCoord(mc_src, mc_dest)
  1053. {
  1054.    var _loc1_ = {x:0,y:0};
  1055.    mc_src.localToGlobal(_loc1_);
  1056.    mc_dest.globalToLocal(_loc1_);
  1057.    return _loc1_;
  1058. }
  1059. function getGlobalCoord(xc, yc, mc)
  1060. {
  1061.    var _loc1_ = {x:xc * 100 / mc._xscale,y:yc * 100 / mc._yscale};
  1062.    mc.localToGlobal(_loc1_);
  1063.    return _loc1_;
  1064. }
  1065. function getLocalCoord(xc, yc, mc)
  1066. {
  1067.    var _loc1_ = new Object({x:xc,y:yc});
  1068.    mc.globalToLocal(_loc1_);
  1069.    _loc1_.x = _loc1_.x / 100 * mc._xscale;
  1070.    _loc1_.y = _loc1_.y / 100 * mc._yscale;
  1071.    return _loc1_;
  1072. }
  1073. function length_ass(arr)
  1074. {
  1075.    var _loc1_ = 0;
  1076.    for(prop in arr)
  1077.    {
  1078.       _loc1_ = _loc1_ + 1;
  1079.    }
  1080.    return _loc1_;
  1081. }
  1082. function ExplodeString(chaine)
  1083. {
  1084.    var _loc3_ = new Array();
  1085.    var _loc1_ = 0;
  1086.    while(_loc1_ < chaine.length)
  1087.    {
  1088.       _loc3_.push(chaine.charAt(_loc1_));
  1089.       _loc1_ = _loc1_ + 1;
  1090.    }
  1091.    return _loc3_;
  1092. }
  1093. function BloquerActives()
  1094. {
  1095.    if(_global.ClipBloquant == undefined)
  1096.    {
  1097.       var _loc0_ = null;
  1098.       var _loc2_ = _global.ClipBloquant = _MOD_.createEmptyMovieClip("ClipBloquant",10123);
  1099.       _loc2_.attachMovie("ClipInvisible","ClipInvisible",2);
  1100.       _loc2_._width = Stage.width;
  1101.       _loc2_._height = Stage.height;
  1102.       _loc2_._x = 0;
  1103.       _loc2_._y = 0;
  1104.       _loc2_.useHandCursor = false;
  1105.       _loc2_.onPress = function()
  1106.       {
  1107.       };
  1108.    }
  1109. }
  1110. function DebloquerActives()
  1111. {
  1112.    if(_global.ClipBloquant != undefined)
  1113.    {
  1114.       removeMovieClip(_global.ClipBloquant);
  1115.       _global.ClipBloquant = undefined;
  1116.    }
  1117. }
  1118. function afficheLM_x2(p)
  1119. {
  1120.    viderLM_x2();
  1121.    _root.gereTextes.afficheLM({codeLM:p.codeLM,X:p.LMrep._x,Y:p.LMrep._y,width:p.LMrep._width,height:p.LMrep._height});
  1122.    LMaVider2.push(p);
  1123. }
  1124. function viderLM_x2()
  1125. {
  1126.    var _loc3_ = 0;
  1127.    while(_loc3_ < _global.LMaVider2.length)
  1128.    {
  1129.       _root.gereTextes.masqueLM(_global.LMaVider2[_loc3_]);
  1130.       _loc3_ = _loc3_ + 1;
  1131.    }
  1132. }
  1133. function afficheLM_x(p)
  1134. {
  1135.    _root.gereTextes.afficheLM({codeLM:p.codeLM,X:p.LMrep._x - p.width / 2,Y:p.LMrep._y - p.height / 2,width:p.width,height:p.height});
  1136.    _global.LMaVider.push(p);
  1137. }
  1138. function viderLM_x()
  1139. {
  1140.    var _loc3_ = 0;
  1141.    while(_loc3_ < _global.LMaVider.length)
  1142.    {
  1143.       _root.gereTextes.masqueLM(_global.LMaVider[_loc3_]);
  1144.       _loc3_ = _loc3_ + 1;
  1145.    }
  1146. }
  1147. function InitMC(p)
  1148. {
  1149.    trace("initMC " + p.mc);
  1150.    var mc = typeof p != "movieclip" ? p.mc : p;
  1151.    if(p.level != undefined)
  1152.    {
  1153.       var ceMC_name_old = mc._name + "_old";
  1154.       var ceMC_name = mc._name;
  1155.       mc._name = ceMC_name_old;
  1156.       mc.duplicateMovieClip(ceMC_name,p.level);
  1157.       mc._visible = false;
  1158.       mc = this[ceMC_name];
  1159.    }
  1160.    var fonction = p.fonction != undefined ? eval("InitMC_" + p.fonction) : InitMC_standart;
  1161.    mc.InitMC = fonction;
  1162.    mc.InitMC(p);
  1163. }
  1164. function InitMC_standart(p)
  1165. {
  1166.    if(p.IB != undefined)
  1167.    {
  1168.       if(typeof p.IBrep == "movieclip")
  1169.       {
  1170.          var IBrepere = p.IBrep;
  1171.       }
  1172.       else if(p.IBrep == true)
  1173.       {
  1174.          var IBrepere = _MOD_["IBrep_" + p.IB];
  1175.       }
  1176.       else
  1177.       {
  1178.          var IBrepere = p.mc;
  1179.       }
  1180.       this.afficheIB = function()
  1181.       {
  1182.          _MOD_.gereTextes.afficheIB({codeIB:p.IB,mc:IBrepere});
  1183.       };
  1184.       this.masqueIB = function()
  1185.       {
  1186.          _MOD_.gereTextes.masqueIB();
  1187.       };
  1188.    }
  1189.    this.reposFrame = p.reposFrame != undefined ? p.reposFrame : "E1";
  1190.    this.pressFrame = p.pressFrame != undefined ? p.pressFrame : "E2";
  1191.    this.overFrame = p.overFrame != undefined ? p.overFrame : "E2";
  1192.    this.outFrame = p.outFrame != undefined ? p.outFrame : "E1";
  1193.    this.releaseFrame = p.releaseFrame != undefined ? p.releaseFrame : "E1";
  1194.    this.releaseOutFrame = p.releaseOutFrame != undefined ? p.releaseOutFrame : "E1";
  1195.    this.activeFrame = p.activeFrame != undefined ? p.activeFrame : undefined;
  1196.    this.desactiveFrame = p.desactiveFrame != undefined ? p.desactiveFrame : undefined;
  1197.    if(p.reposFrame != undefined)
  1198.    {
  1199.       this.gotoAndStop(p.reposFrame);
  1200.    }
  1201.    this.p = p;
  1202.    ┬º┬ºpush(this);
  1203.    ┬º┬ºpush("joueson");
  1204.    if(p.son == undefined)
  1205.    {
  1206.       ┬º┬ºpush(undefined);
  1207.    }
  1208.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1209.    ┬º┬ºpush(this);
  1210.    ┬º┬ºpush("stopson");
  1211.    if(p.nostop != undefined)
  1212.    {
  1213.       ┬º┬ºpush(undefined);
  1214.    }
  1215.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1216.    if(p.sonOnPress != undefined)
  1217.    {
  1218.       this.sonOnPress = p.sonOnPress;
  1219.       this.sonOnPress_offset = p.sonOnPress_offset != undefined ? Number(p.sonOnPress_offset) : 0;
  1220.       this.sonOnPress_loopSon = p.sonOnPress_loopSon != undefined ? Number(p.sonOnPress_loopSon) : 0;
  1221.       this.jouesonOnPress = function()
  1222.       {
  1223.          joueBruitage({nomSon:this.sonOnPress,offset:this.sonOnPress_offset,loopSon:this.sonOnPress_loopSon});
  1224.       };
  1225.       this.stopsonOnPress = function()
  1226.       {
  1227.          stopBruitage({nomSon:this.sonOnPress});
  1228.       };
  1229.    }
  1230.    else
  1231.    {
  1232.       this.jouesonOnMove = undefined;
  1233.       this.stopsonOnMove = undefined;
  1234.    }
  1235.    this.curseur_after_press = p.goto != undefined ? "fleche" : "doigt";
  1236.    this.curseur_after_press = p.curseurAfterPress != undefined ? p.curseurAfterPress : "doigt";
  1237.    this.goto = p.goto;
  1238.    this.Activer = function()
  1239.    {
  1240.       if(this.Actif == true)
  1241.       {
  1242.          return undefined;
  1243.       }
  1244.       this.enabled = true;
  1245.       this.BTN.enabled = true;
  1246.       this.Actif = true;
  1247.       this.gotoAndStop(this.activeFrame);
  1248.    };
  1249.    this.Desactiver = function()
  1250.    {
  1251.       if(this.Actif == false)
  1252.       {
  1253.          return undefined;
  1254.       }
  1255.       this.enabled = false;
  1256.       this.BTN.enabled = false;
  1257.       this.Actif = false;
  1258.       this.stopsonOnPress();
  1259.       this.masqueIB();
  1260.       this.gotoAndStop(this.desactiveFrame);
  1261.    };
  1262.    this.Activer();
  1263.    this.GS = this.gotoAndStop;
  1264.    this.MConPress = function()
  1265.    {
  1266.       if(this.p.blockOnPress == true)
  1267.       {
  1268.          this.enabled = false;
  1269.       }
  1270.       this.stopson();
  1271.       this.jouesonOnPress();
  1272.       this.masqueIB();
  1273.       this.gotoAndStop(this.pressFrame);
  1274.       gereCursor(this.curseur_after_press);
  1275.       _root.gotoAndStop(this.goto);
  1276.       var p = this.OnPress();
  1277.    };
  1278.    this.MConRollOver = function()
  1279.    {
  1280.       this.joueson();
  1281.       this.afficheIB();
  1282.       this.gotoAndStop(this.overFrame);
  1283.       gereCursor("doigt");
  1284.       var _loc2_ = this.OnRollOver();
  1285.    };
  1286.    this.MConRollOut = function()
  1287.    {
  1288.       this.stopson();
  1289.       this.masqueIB();
  1290.       this.gotoAndStop(this.outFrame);
  1291.       gereCursor("fleche");
  1292.       var _loc2_ = this.OnRollOut();
  1293.    };
  1294.    this.MConRelease = function()
  1295.    {
  1296.       this.gotoAndStop(this.releaseFrame);
  1297.       gereCursor("doigt");
  1298.       var _loc2_ = this.OnRelease();
  1299.    };
  1300.    this.MConReleaseOutside = function()
  1301.    {
  1302.       this.gotoAndStop(this.releaseOutFrame);
  1303.       gereCursor("fleche");
  1304.       var _loc2_ = this.OnReleaseOutside();
  1305.    };
  1306.    if(p.BTN != true)
  1307.    {
  1308.       this.onPress = this.MConPress;
  1309.       this.onRollOver = this.MConRollOver;
  1310.       this.onRollOut = this.MConRollOut;
  1311.       this.onRelease = this.MConRelease;
  1312.       this.onReleaseOutside = this.MConReleaseOutside;
  1313.    }
  1314.    else
  1315.    {
  1316.       this.BTN.onPress = function()
  1317.       {
  1318.          this._parent.MConPress();
  1319.       };
  1320.       this.BTN.onRollOver = function()
  1321.       {
  1322.          this._parent.MConRollOver();
  1323.       };
  1324.       this.BTN.onRollOut = function()
  1325.       {
  1326.          this._parent.MConRollOut();
  1327.       };
  1328.       this.BTN.onRelease = function()
  1329.       {
  1330.          this._parent.MConRelease();
  1331.       };
  1332.       this.BTN.onReleaseOutside = function()
  1333.       {
  1334.          this._parent.MConReleaseOutside();
  1335.       };
  1336.    }
  1337. }
  1338. function InitMC_BTN(p)
  1339. {
  1340.    if(p.IB != undefined)
  1341.    {
  1342.       if(p.IBrep == true)
  1343.       {
  1344.          var IBrepere = _MOD_["IBrep_" + p.IB];
  1345.       }
  1346.       else
  1347.       {
  1348.          var IBrepere = p.mc;
  1349.       }
  1350.       this.afficheIB = function()
  1351.       {
  1352.          gereTextes.afficheIB({codeIB:p.IB,mc:IBrepere});
  1353.       };
  1354.       this.masqueIB = function()
  1355.       {
  1356.          gereTextes.masqueIB();
  1357.       };
  1358.    }
  1359.    this.enabled = true;
  1360.    ┬º┬ºpush(this);
  1361.    ┬º┬ºpush("joueson");
  1362.    if(p.son == undefined)
  1363.    {
  1364.       ┬º┬ºpush(undefined);
  1365.    }
  1366.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1367.    ┬º┬ºpush(this);
  1368.    ┬º┬ºpush("stopson");
  1369.    if(p.nostop != undefined)
  1370.    {
  1371.       ┬º┬ºpush(undefined);
  1372.    }
  1373.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1374.    var curseur_after_press = p.goto != undefined ? "fleche" : "doigt";
  1375.    this.goto = p.goto;
  1376.    this.BTN.onPress = function()
  1377.    {
  1378.       this._parent.stopson();
  1379.       this._parent.masqueIB();
  1380.       this._parent.gotoAndStop("E3");
  1381.       gereCursor(curseur_after_press);
  1382.       _root.gotoAndStop(this.goto);
  1383.       var _loc3_ = this._parent.OnPress();
  1384.    };
  1385.    this.BTN.onRollOver = function()
  1386.    {
  1387.       this._parent.joueson();
  1388.       this._parent.afficheIB();
  1389.       this._parent.gotoAndStop("E2");
  1390.       gereCursor("doigt");
  1391.       var _loc2_ = this._parent.OnRollOver();
  1392.    };
  1393.    this.BTN.onRollOut = function()
  1394.    {
  1395.       this._parent.stopson();
  1396.       this._parent.masqueIB();
  1397.       this._parent.gotoAndStop("E1");
  1398.       gereCursor("fleche");
  1399.       var _loc2_ = this._parent.OnRollOut();
  1400.    };
  1401.    this.BTN.onRelease = function()
  1402.    {
  1403.       this._parent.gotoAndStop("E2");
  1404.       gereCursor("doigt");
  1405.       var _loc2_ = this._parent.OnRelease();
  1406.    };
  1407.    this.BTN.onReleaseOutside = function()
  1408.    {
  1409.       this._parent.gotoAndStop("E1");
  1410.       gereCursor("fleche");
  1411.       var _loc2_ = this._parent.OnReleaseOutside();
  1412.    };
  1413. }
  1414. function InitMC_dragdrop(p)
  1415. {
  1416.    xtrace("InitMC");
  1417.    if(p.IB != undefined)
  1418.    {
  1419.       if(p.IBrep == true)
  1420.       {
  1421.          var IBrepere = _MOD_["IBrep_" + p.IB];
  1422.       }
  1423.       else
  1424.       {
  1425.          var IBrepere = p.mc;
  1426.       }
  1427.       this.afficheIB = function()
  1428.       {
  1429.          gereTextes.afficheIB({codeIB:p.IB,mc:IBrepere});
  1430.       };
  1431.       this.masqueIB = function()
  1432.       {
  1433.          gereTextes.masqueIB();
  1434.       };
  1435.    }
  1436.    this.pDepth = this.getDepth();
  1437.    this.pressFrame = p.pressFrame != undefined ? p.pressFrame : "E3";
  1438.    ┬º┬ºpush(this);
  1439.    ┬º┬ºpush("joueson");
  1440.    if(p.son == undefined)
  1441.    {
  1442.       ┬º┬ºpush(undefined);
  1443.    }
  1444.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1445.    ┬º┬ºpush(this);
  1446.    ┬º┬ºpush("stopson");
  1447.    if(p.son == undefined)
  1448.    {
  1449.       ┬º┬ºpush(undefined);
  1450.    }
  1451.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1452.    ┬º┬ºpush(this);
  1453.    ┬º┬ºpush("jouesonOnPress");
  1454.    if(p.son == undefined)
  1455.    {
  1456.       ┬º┬ºpush(undefined);
  1457.    }
  1458.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1459.    ┬º┬ºpush(this);
  1460.    ┬º┬ºpush("stopsonOnPress");
  1461.    if(p.son == undefined)
  1462.    {
  1463.       ┬º┬ºpush(undefined);
  1464.    }
  1465.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1466.    ┬º┬ºpush(this);
  1467.    ┬º┬ºpush("jouesonOnOverCible");
  1468.    if(p.son == undefined)
  1469.    {
  1470.       ┬º┬ºpush(undefined);
  1471.    }
  1472.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1473.    ┬º┬ºpush(this);
  1474.    ┬º┬ºpush("stopsonOnOverCible");
  1475.    if(p.son == undefined)
  1476.    {
  1477.       ┬º┬ºpush(undefined);
  1478.    }
  1479.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1480.    var _loc5_ = p.goto != undefined ? "fleche" : "doigt";
  1481.    this.goto = p.goto;
  1482.    this.DetectDrag = function()
  1483.    {
  1484.       this._x = _xmouse - this.ecart_mousex;
  1485.       this._y = _ymouse - this.ecart_mousey;
  1486.       this.CiblesTouchees = [];
  1487.       var _loc2_ = 0;
  1488.       while(_loc2_ < this.CiblesDrag.length)
  1489.       {
  1490.          if(this.hitTest(this.CiblesDrag[_loc2_]))
  1491.          {
  1492.             this.CiblesDrag[_loc2_].gotoAndStop("E3");
  1493.             this.CiblesTouchees.push(this.CiblesDrag[_loc2_]);
  1494.             this.touche = this.touche + 1;
  1495.          }
  1496.          else
  1497.          {
  1498.             this.CiblesDrag[_loc2_].gotoAndStop("E1");
  1499.          }
  1500.          _loc2_ = _loc2_ + 1;
  1501.       }
  1502.       if(this.touche == 1)
  1503.       {
  1504.          this.jouesonOnOverCible();
  1505.       }
  1506.       if(this.CiblesTouchees.length <= 0)
  1507.       {
  1508.          this.touche = 0;
  1509.          this.stopsonOnOverCible();
  1510.       }
  1511.       this.PendantDrag();
  1512.    };
  1513.    this.StartDrag = function()
  1514.    {
  1515.       this.ecart_mousex = _xmouse - this._x;
  1516.       this.ecart_mousey = _ymouse - this._y;
  1517.       this.IntervalId = setInterval(mx.utils.Delegate.create(this,this.DetectDrag),10);
  1518.       this.swapDepths(15800);
  1519.    };
  1520.    this.ComeBack = function()
  1521.    {
  1522.       this._x = this.xOri;
  1523.       this._y = this.yOri;
  1524.       this.gotoAndStop("E1");
  1525.    };
  1526.    this.onPress = function()
  1527.    {
  1528.       this.jouesonOnPress();
  1529.       this.xOri = this._x;
  1530.       this.yOri = this._y;
  1531.       this.masqueIB();
  1532.       this.gotoAndStop(this.pressFrame);
  1533.       gereCursor("mainF");
  1534.       this.StartDrag();
  1535.       var _loc2_ = this.OnPress();
  1536.    };
  1537.    this.onRollOver = function()
  1538.    {
  1539.       this.joueson();
  1540.       this.afficheIB();
  1541.       this.gotoAndStop("E2");
  1542.       gereCursor("mainO");
  1543.       var _loc2_ = this.OnRollOver();
  1544.    };
  1545.    this.onRollOut = function()
  1546.    {
  1547.       this.stopson();
  1548.       this.gotoAndStop("E1");
  1549.       this.masqueIB();
  1550.       gereCursor("fleche");
  1551.       var _loc2_ = this.OnRollOut();
  1552.    };
  1553.    this.onRelease = function()
  1554.    {
  1555.       gereCursor("mainO");
  1556.       this.stopsonOnPress();
  1557.       this.gotoAndStop("E2");
  1558.       clearInterval(this.IntervalId);
  1559.       this.CiblesTouchees = [];
  1560.       var _loc2_ = 0;
  1561.       while(_loc2_ < this.CiblesDrag.length)
  1562.       {
  1563.          if(this.hitTest(this.CiblesDrag[_loc2_]))
  1564.          {
  1565.             _;
  1566.             this.CiblesTouchees.push(this.CiblesDrag[_loc2_]);
  1567.          }
  1568.          _loc2_ = _loc2_ + 1;
  1569.       }
  1570.       this.swapDepths(this.pDepth);
  1571.       this.ApresDrag();
  1572.       var _loc3_ = this.OnRelease();
  1573.    };
  1574.    this.onReleaseOutside = this.onRelease;
  1575. }
  1576. function InitMC_slider(p)
  1577. {
  1578.    if(p.IB != undefined)
  1579.    {
  1580.       if(p.IBrep == true)
  1581.       {
  1582.          var IBrepere = _MOD_["IBrep_" + p.IB];
  1583.       }
  1584.       else
  1585.       {
  1586.          var IBrepere = p.mc;
  1587.       }
  1588.       this.afficheIB = function()
  1589.       {
  1590.          gereTextes.afficheIB({codeIB:p.IB,mc:IBrepere});
  1591.       };
  1592.       this.masqueIB = function()
  1593.       {
  1594.          gereTextes.masqueIB();
  1595.       };
  1596.    }
  1597.    ┬º┬ºpush(this);
  1598.    ┬º┬ºpush("joueson");
  1599.    if(p.son == undefined)
  1600.    {
  1601.       ┬º┬ºpush(undefined);
  1602.    }
  1603.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1604.    ┬º┬ºpush(this);
  1605.    ┬º┬ºpush("stopson");
  1606.    if(p.son == undefined)
  1607.    {
  1608.       ┬º┬ºpush(undefined);
  1609.    }
  1610.    ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  1611.    var _loc6_ = p.goto != undefined ? "fleche" : "doigt";
  1612.    this.goto = p.goto;
  1613.    this.EnMouvement = false;
  1614.    if(p.sonOnMove != undefined)
  1615.    {
  1616.       this.sonOnMove = p.sonOnMove;
  1617.       this.sonOnMove_offset = p.sonOnMove_offset != undefined ? Number(p.sonOnMove_offset) : 0;
  1618.       this.sonOnMove_loopSon = p.sonOnMove_loopSon != undefined ? Number(p.sonOnMove_loopSon) : 0;
  1619.       this.jouesonOnMove = function()
  1620.       {
  1621.          joueBruitage({nomSon:this.sonOnMove,offset:this.sonOnMove_offset,loopSon:this.sonOnMove_loopSon});
  1622.       };
  1623.       this.stopsonOnMove = function()
  1624.       {
  1625.          stopBruitage({nomSon:this.sonOnMove});
  1626.       };
  1627.    }
  1628.    else
  1629.    {
  1630.       this.jouesonOnMove = undefined;
  1631.       this.stopsonOnMove = undefined;
  1632.    }
  1633.    if(p.sonOnPress != undefined)
  1634.    {
  1635.       this.sonOnPress = p.sonOnPress;
  1636.       this.sonOnPress_offset = p.sonOnPress_offset != undefined ? Number(p.sonOnPress_offset) : 0;
  1637.       this.sonOnPress_loopSon = p.sonOnPress_loopSon != undefined ? Number(p.sonOnPress_loopSon) : 0;
  1638.       this.jouesonOnPress = function()
  1639.       {
  1640.          joueBruitage({nomSon:this.sonOnPress,offset:this.sonOnPress_offset,loopSon:this.sonOnPress_loopSon});
  1641.       };
  1642.       this.stopsonOnPress = function()
  1643.       {
  1644.          stopBruitage({nomSon:this.sonOnPress});
  1645.       };
  1646.    }
  1647.    else
  1648.    {
  1649.       this.jouesonOnMove = undefined;
  1650.       this.stopsonOnMove = undefined;
  1651.    }
  1652.    this.DragZone = {left:this._x,right:this._x + p.DragZoneLargeur,top:this._y,bottom:this._y};
  1653.    this.DragZoneLargeur = p.DragZoneLargeur;
  1654.    this.DragZoneLargeur_pourcent = p.DragZoneLargeur / 100;
  1655.    this.SetPosition = function(pourcent)
  1656.    {
  1657.       this._x = this.DragZone.left + this.DragZoneLargeur_pourcent * pourcent;
  1658.    };
  1659.    this.GetPosition = function()
  1660.    {
  1661.       return (this._x - this.DragZone.left) / this.DragZoneLargeur_pourcent;
  1662.    };
  1663.    this.DetectDrag = function()
  1664.    {
  1665.       this._x = _root._xmouse - this.ecart_mousex;
  1666.       this._y = _root._ymouse - this.ecart_mousey;
  1667.       if(this._x <= this.DragZone.left)
  1668.       {
  1669.          this._x = this.DragZone.left;
  1670.       }
  1671.       if(this._y < this.DragZone.top)
  1672.       {
  1673.          this._y = this.DragZone.top;
  1674.       }
  1675.       if(this._x >= this.DragZone.right)
  1676.       {
  1677.          this._x = this.DragZone.right;
  1678.       }
  1679.       if(this._y > this.DragZone.bottom)
  1680.       {
  1681.          this._y = this.DragZone.bottom;
  1682.       }
  1683.       updateAfterEvent();
  1684.       if(this._x == this.lastx && this._y == this.lasty)
  1685.       {
  1686.          if(this.EnMouvement == true)
  1687.          {
  1688.             this.EnMouvement = false;
  1689.             this.stopsonOnMove();
  1690.          }
  1691.       }
  1692.       else if(this.EnMouvement == false)
  1693.       {
  1694.          this.EnMouvement = true;
  1695.          this.jouesonOnMove();
  1696.       }
  1697.       this.lastx = this._x;
  1698.       this.lasty = this._y;
  1699.       this.PendantSlide();
  1700.    };
  1701.    this.StartDrag = function()
  1702.    {
  1703.       this.ecart_mousex = _root._xmouse - this._x;
  1704.       this.ecart_mousey = _root._ymouse - this._y;
  1705.       this.lastx = this._x;
  1706.       this.lasty = this._y;
  1707.       this.IntervalId = setInterval(mx.utils.Delegate.create(this,this.DetectDrag),1);
  1708.    };
  1709.    this.onPress = function()
  1710.    {
  1711.       this.jouesonOnPress();
  1712.       this.masqueIB();
  1713.       this.gotoAndStop("E3");
  1714.       gereCursor("mainF");
  1715.       this.StartDrag();
  1716.       var _loc2_ = this.OnPress();
  1717.    };
  1718.    this.onRollOver = function()
  1719.    {
  1720.       this.joueson();
  1721.       this.afficheIB();
  1722.       this.gotoAndStop("E2");
  1723.       gereCursor("mainO");
  1724.       var _loc2_ = this.OnRollOver();
  1725.    };
  1726.    this.onRollOut = function()
  1727.    {
  1728.       this.stopson();
  1729.       this.stopsonOnPress();
  1730.       this.stopsonOnMove();
  1731.       this.gotoAndStop("E1");
  1732.       this.masqueIB();
  1733.       gereCursor("fleche");
  1734.       var _loc2_ = this.OnRollOut();
  1735.    };
  1736.    this.onRelease = function()
  1737.    {
  1738.       this.gotoAndStop("E2");
  1739.       clearInterval(this.IntervalId);
  1740.       this.stopson();
  1741.       this.stopsonOnPress();
  1742.       this.stopsonOnMove();
  1743.       gereCursor("mainO");
  1744.       var _loc2_ = this.OnRelease();
  1745.    };
  1746.    this.onReleaseOutside = function()
  1747.    {
  1748.       this.onRelease();
  1749.       gereCursor("fleche");
  1750.       var _loc2_ = this.OnReleaseOutside();
  1751.    };
  1752. }
  1753. function InitMC_titre(p)
  1754. {
  1755.    this.LMaVider = [];
  1756.    this.offsetx = p.offsetx != undefined ? Number(p.offsetx) : 0;
  1757.    this.offsety = p.offsety != undefined ? Number(p.offsety) : 0;
  1758.    this.ChangeTexte = function(p)
  1759.    {
  1760.       this.viderLM();
  1761.       _root.gereTextes.afficheLM({codeLM:p.codeLM,X:this._x + this.offsetx,Y:this._y + this.offsety,width:this._width,height:this._height});
  1762.       this.LMaVider.push(p);
  1763.    };
  1764.    this.viderLM = function()
  1765.    {
  1766.       var _loc3_ = 0;
  1767.       while(_loc3_ < this.LMaVider.length)
  1768.       {
  1769.          _root.gereTextes.masqueLM(this.LMaVider[_loc3_]);
  1770.          _loc3_ = _loc3_ + 1;
  1771.       }
  1772.    };
  1773. }
  1774. function INIT_INTERFACE(intLabel)
  1775. {
  1776.    Interface = Interface["A_" + gModuleName + "_INTERFACE_DDB"];
  1777.    Interface.gotoAndPlay(intLabel);
  1778.    Interface._visible = 1;
  1779.    _global.BT_OEIL = Interface.BT_OEIL;
  1780.    _global.BT_SOM = Interface.BT_SOM;
  1781.    _global.ActiveOEIL = ActiveOEIL;
  1782.    _root.ActiveOEIL = ActiveOEIL;
  1783.    _global.DesactiveOEIL = DesactiveOEIL;
  1784.    _root.DesactiveOEIL = DesactiveOEIL;
  1785.    _root.OEILCLIC = 0;
  1786. }
  1787. function DesactiveOEIL()
  1788. {
  1789.    trace("DesactiveOEIL");
  1790.    BT_OEIL.useHandCursor = false;
  1791.    BT_OEIL.gOEILactif = 0;
  1792. }
  1793. function ActiveOEIL()
  1794. {
  1795.    trace("ActiveOEIL");
  1796.    BT_OEIL.useHandCursor = true;
  1797.    BT_OEIL.gOEILactif = 1;
  1798. }
  1799. function MASCOTTE_SORT(p)
  1800. {
  1801.    trace(_root.swfStocker["A_" + gModuleName + "_" + p.mascotte]);
  1802.    _root.swfStocker["A_" + gModuleName + "_" + p.mascotte].gotoAndPlay("E1");
  1803.    _root.swfStocker["A_" + gModuleName + "_" + p.mascotte]._visible = true;
  1804.    _root.cMascotte = p.cMascotte;
  1805.    _root.bMascotte = p.bMascotte;
  1806.    _root.mNextLabel = p.nextLabel;
  1807. }
  1808. function initRelance(p)
  1809. {
  1810.    intervalRel = setInterval(this,"oeilRelance",p.tempsRel * 1000,p.sonRel);
  1811. }
  1812. function oeilRelance(sonRel)
  1813. {
  1814.    joueSon({nomSon:sonRel});
  1815.    _root.gotoAndStop(_root._currentframe - 1);
  1816. }
  1817. function clearRelance()
  1818. {
  1819.    clearInterval(intervalRel);
  1820. }
  1821. function playConsignes()
  1822. {
  1823.    trace("playConsigne");
  1824.    DesactiveOEIL();
  1825.    if(_root.OEILCLIC == 0)
  1826.    {
  1827.       _root.OEILCLIC = 1;
  1828.       joueSon({nomSon:"00_ZE",actionFin:"ActiveOEIL"});
  1829.    }
  1830.    else
  1831.    {
  1832.       joueSon({nomSon:"01_ZE",actionFin:"ActiveOEIL"});
  1833.    }
  1834. }
  1835. function afficherRolls()
  1836. {
  1837.    if(nbZones !== undefined)
  1838.    {
  1839.       var _loc3_ = 1;
  1840.       while(_loc3_ <= _root.nbZones)
  1841.       {
  1842.          this["ROLL_" + gimme2digits(_loc3_)]._visible = 1;
  1843.          _loc3_ = _loc3_ + 1;
  1844.       }
  1845.    }
  1846. }
  1847. function masquerRolls()
  1848. {
  1849.    if(nbZones !== undefined)
  1850.    {
  1851.       var _loc3_ = 1;
  1852.       while(_loc3_ <= _root.nbZones)
  1853.       {
  1854.          this["ROLL_" + gimme2digits(_loc3_)]._visible = 0;
  1855.          _loc3_ = _loc3_ + 1;
  1856.       }
  1857.    }
  1858. }
  1859. function animChangeEtat(etat)
  1860. {
  1861.    trace("animChangeEtat : " + activeZone + " - " + etat);
  1862.    this["ANIM_" + activeZone].gotoAndStop(etat);
  1863. }
  1864. function initMoteur()
  1865. {
  1866.    trace(" ____ __ 111111__ _ __ _");
  1867.    var _loc5_ = this;
  1868.    var _loc6_ = _loc5_.createEmptyMovieClip("_moteur_",12354);
  1869.    this.mclR = new MovieClipLoader();
  1870.    if(_global.HOTE != undefined)
  1871.    {
  1872.       var _loc4_ = _global.gPARAMS.HOTE_DIR + "/DATA/HOTE/prod_gen_ED/moteur.swf";
  1873.    }
  1874.    else
  1875.    {
  1876.       _loc4_ = "../../HOTE/prod_gen_ED/moteur.swf";
  1877.    }
  1878.    this.mclR.loadClip(_loc4_,_loc6_);
  1879.    this.mclR.onLoadInit = function(myClip)
  1880.    {
  1881.       trace("_________ allooo ");
  1882.       _root.ChargeMoteur();
  1883.    };
  1884. }
  1885. function initBT_RETOUR()
  1886. {
  1887.    var _loc3_ = this.BT_RETOUR;
  1888.    _loc3_.onRollOver = function()
  1889.    {
  1890.       joueBruitage({nomSon:"B_RETOUR"});
  1891.       gereTextes.afficheIB({mc:this,codeIB:"IB100"});
  1892.       this.gotoAndPlay("E2");
  1893.       gereCursor(2);
  1894.       trace(this.pNum);
  1895.    };
  1896.    _loc3_.onRollOut = _loc3_.onDragOut = function()
  1897.    {
  1898.       stopBruitage({nomSon:"B_RETOUR"});
  1899.       gereTextes.masqueIB({mc:this,codeIB:"IB100"});
  1900.       this.gotoAndPlay("E1");
  1901.       gereCursor(1);
  1902.    };
  1903.    _loc3_.onPress = function()
  1904.    {
  1905.       gZone = this.pNum;
  1906.       stopBruitage({nomSon:"B_RETOUR"});
  1907.       gereTextes.masqueIB({mc:this,codeIB:"IB100"});
  1908.       _global.ChangeModule({codeRub:"DSS",numMod:0,A_GoLabel:"ATTENTE"});
  1909.    };
  1910. }
  1911. function initBT_JOUER()
  1912. {
  1913.    var _loc2_ = this.BT_JOUER;
  1914.    _loc2_.onRollOver = function()
  1915.    {
  1916.       joueBruitage({nomSon:"B_JOUER"});
  1917.       gereTextes.afficheIB({mc:this,codeIB:"IB_50"});
  1918.       this.gotoAndPlay("E2");
  1919.       gereCursor(2);
  1920.    };
  1921.    _loc2_.onRollOut = _loc2_.onDragOut = function()
  1922.    {
  1923.       stopBruitage({nomSon:"B_JOUER"});
  1924.       gereTextes.masqueIB({mc:this,codeIB:"IB_50"});
  1925.       this.gotoAndPlay("E1");
  1926.       gereCursor(1);
  1927.    };
  1928.    _loc2_.onPress = function()
  1929.    {
  1930.       gZone = this.pNum;
  1931.       stopBruitage({nomSon:"B_JOUER"});
  1932.       gereTextes.masqueIB({mc:this,codeIB:"IB_50"});
  1933.       this.gotoAndPlay("E1");
  1934.       gereCursor(1);
  1935.       gotoAndPlay("SUITE_" + gimme2digits(gJeu));
  1936.       TRANSITION.pDepth = TRANSITION.getDepth();
  1937.       TRANSITION.swapDepths(139);
  1938.       desactiveClip(this);
  1939.    };
  1940. }
  1941. stop();
  1942. this._lockroot = true;
  1943. _global._MOD_ = this;
  1944. this.CIBLE = this;
  1945. _global.stopComment = stopComment;
  1946. _global.joueSon = joueSon;
  1947. _root.creerClicZap = creerClicZap;
  1948. _global.joueBruitage = joueBruitage;
  1949. _global.stopBruitage = stopBruitage;
  1950. _global.gimme2digits = gimme2digits;
  1951. this.randRange = randomValue;
  1952. _global.chercheDepthPlus = chercheDepthPlus;
  1953. _global.chercheDepthMoins = chercheDepthMoins;
  1954. _global.DesactiveBZ = DesactiveBZ;
  1955. _root.DesactiveBZ = DesactiveBZ;
  1956. _global.ActiveBZ = ActiveBZ;
  1957. _root.ActiveBZ = ActiveBZ;
  1958. _global.xtraceGroups = [];
  1959. xtraceGroups.tous = 1;
  1960. xtraceGroups.doc = 1;
  1961. xtraceGroups.debug = 0;
  1962. xtraceGroups.route = 0;
  1963. xtraceGroups.error = 0;
  1964. _global.xtrace = xtrace;
  1965. _global.xtrace_raz = xtrace_raz;
  1966. _global.xlisteObj = xlisteObj;
  1967. _global.xtrace_mode = _global.xtrace_mode != undefined ? _global.xtrace_mode : "off";
  1968. _global.xlisteObj_mode = _global.xlisteObj_mode != undefined ? _global.xlisteObj_mode : "off";
  1969. this.ChargeMoteur = function(p)
  1970. {
  1971.    this.initVariables();
  1972. };
  1973. trace("XLIBBB");
  1974. this.ChargeMoteur = function(p)
  1975. {
  1976.    trace("Charge Moteur xlib");
  1977.    this.initVariables();
  1978. };
  1979. _global.LMaVider = new Array();
  1980. _global.LMaVider2 = new Array();
  1981. _global.InitMC = InitMC;
  1982. _global.InitMC_standart = InitMC_standart;
  1983. _global.InitMC_BTN = InitMC_BTN;
  1984. _global.InitMC_dragdrop = InitMC_dragdrop;
  1985. _global.InitMC_slider = InitMC_slider;
  1986. _global.InitMC_titre = InitMC_titre;
  1987. _global.IncString = IncString;
  1988. _global.DecString = DecString;
  1989. _global.GetFilePath = GetFilePath;
  1990. _global.AntiSlashToSlash = AntiSlashToSlash;
  1991. _global.str_replace = str_replace;
  1992. _global.JoindreObjets = JoindreObjets;
  1993. _global.xGetConfig = xGetConfig;
  1994. _global.GetOriginalSize = GetOriginalSize;
  1995. _global.GetOriginalHeight = GetOriginalHeight;
  1996. _global.CreerCache = CreerCache;
  1997. _global.ConvertCoord = ConvertCoord;
  1998. _global.getGlobalCoord = getGlobalCoord;
  1999. _global.getLocalCoord = getLocalCoord;
  2000. _global.length_ass = length_ass;
  2001. _global.ExplodeString = ExplodeString;
  2002. _global.BloquerActives = BloquerActives;
  2003. _global.DebloquerActives = DebloquerActives;
  2004. _global.afficheLM_x = afficheLM_x;
  2005. _global.viderLM_x = viderLM_x;
  2006. _global.afficheLM_x2 = afficheLM_x2;
  2007. _global.viderLM_x2 = viderLM_x2;
  2008. trace("FUNCTIONS : COMMUN_DEC");
  2009. _global.xtrace_mode = "on";
  2010. _global.xlisteObj_mode = "on";
  2011. this.initVariables = function()
  2012. {
  2013.    trace("coucou");
  2014.    this.gotoAndStop("INIT");
  2015.    trace({mess:"- execution du code de prod/module/init.as",group:"doc"});
  2016.    trace("init.as");
  2017. };
  2018. this.Init = function()
  2019. {
  2020.    trace(" ____ __ __ _ __ _");
  2021.    this.initMoteur();
  2022. };
  2023. this.InitOk = function()
  2024. {
  2025.    trace("InitOk");
  2026.    if(HOTE == undefined)
  2027.    {
  2028.       this.Start();
  2029.    }
  2030.    else
  2031.    {
  2032.       HOTE.InitFin(this);
  2033.    }
  2034. };
  2035. this.Start = function()
  2036. {
  2037.    gereCursor("fleche");
  2038.    this.gotoAndStop("START");
  2039.    trace("start.as");
  2040. };
  2041. if(HOTE == undefined)
  2042. {
  2043.    this.onEnterFrame = function()
  2044.    {
  2045.       var _loc2_ = this.getBytesLoaded();
  2046.       var _loc3_ = this.getBytesTotal();
  2047.       if(_loc2_ >= _loc3_)
  2048.       {
  2049.          this.Init();
  2050.          delete this.onEnterFrame;
  2051.       }
  2052.    };
  2053. }
  2054. stop();
  2055.